import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import './assets/styles/index.scss' // 导入全局样式
import App from './App.vue'
import pinia from './store' // 新增
import router from './router' // 新增/
// / 新增：使用 Vue Router
const app = createApp(App)
app.use(router) 

// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(ElementPlus)
app.use(pinia)
app.mount('#app')